import request from '../request'

export const getPersonalized = limit => {
  return request.get(`/personalized?limit=${limit}`)
}

export const getNewSongList = type => {
  return request.get(`/top/song?type=${type}`)
}

export const getBanner = () => {
  return request.get('/banner?type=0')
}

export const getMV = area => {
  return request.get(`/mv/all?area=${area}`)
}

export const getCD = area => {
  return request.get(`/album/new?area=${area}`)
}

export const getRankingList = id => {
  return request.get('/playlist/track/all', {
    params: {
      id,
      limit: 3,
    },
  })
}
